<template>
<div class="public-common">
    <!--业务办理 && 其他费用收取-->
    <div class="public-title">其他费用收取列表</div>
    <div class="public-searchbox">
        <el-row>
            <el-col :span="6">
                <el-input placeholder="请输入内容" v-model="form.test" class="input-with-select"  size="mini" />
            </el-col>
            <el-col :span="18">
                <el-button type="primary" icon="el-icon-search" size="mini"  style="margin-left:10px;">搜索</el-button>
                <el-button type="success" size="mini"  icon="el-icon-edit-outline">新建</el-button>
                <el-button type="danger" size="mini"  icon="el-icon-delete">删除</el-button>
                <el-button type="warning" size="mini"  icon="el-icon-printer">打印</el-button>
            </el-col>
        </el-row>
    </div>
    <el-scrollbar class="public-scroll">
        <el-table :data="tabledata" size="mini" border stripe header-row-class-name="textcenter">
            <el-table-column
            type="selection"
            width="55" fixed="left">
            </el-table-column>
            <el-table-column
                label="车牌号">
                <template slot-scope="scope">
                    {{scope.row.carId}}
                </template>
            </el-table-column> 
            <el-table-column
                label="车队名称">
                <template slot-scope="scope">
                    {{scope.row.carId}}
                </template>
            </el-table-column>
            <el-table-column
                label="费用名称">
                <template slot-scope="scope">
                    {{scope.row.carId}}
                </template>
            </el-table-column>
            <el-table-column
                label="票号">
                <template slot-scope="scope">
                    {{scope.row.carId}}
                </template>
            </el-table-column>
            <el-table-column
                label="缴费金额">
                <template slot-scope="scope">
                    {{scope.row.carId}}
                </template>
            </el-table-column>
            <el-table-column
                label="缴费日期">
                <template slot-scope="scope">
                    {{scope.row.carId}}
                </template>
            </el-table-column>
            <el-table-column
                label="打印状态">
                <template slot-scope="scope">
                    {{scope.row.carId}}
                </template>
            </el-table-column>
            <el-table-column
                label="操作人">
                <template slot-scope="scope">
                    {{scope.row.carId}}
                </template>
            </el-table-column>
            <el-table-column
                label="操作时间">
                <template slot-scope="scope">
                    {{scope.row.carId}}
                </template>
            </el-table-column>           
            <el-table-column
                label="操作" fixed="right">
                <template slot-scope="scope">
                    <el-button type="primary" size="mini">编辑</el-button>
                </template>
            </el-table-column>             
        </el-table>
    </el-scrollbar>
    <el-pagination
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page="page.now"
        :page-sizes="page.sizes"
        :page-size="page.pagesize"
        layout="total, sizes, prev, pager, next, jumper"
        :total="page.total" style="margin-top:10px;">
    </el-pagination>

    <!--dialog-->
    <el-dialog title="其他费用收取管理" :visible.sync="dialog.isVisible" width="550px" top="20vh">
        <el-scrollbar style="height:300px;">
            <div style="overflow:hidden;">
                <div class="public-box">
                    <el-form size="mini" label-width="90px">
                        <el-row>
                            <el-col :span="12">
                                <el-form-item label="车牌号">
                                    <el-select v-model="dialog.carid" placeholder="请选择" style="width:100%;">
                                        <el-option
                                        v-for="item in select.carids"
                                        :key="item.value"
                                        :label="item.label"
                                        :value="item.value">
                                        </el-option>
                                    </el-select>
                                </el-form-item>
                            </el-col>
                            <el-col :span="12">
                                <el-form-item label="票号">
                                    <el-input v-model="dialog.test" disabled></el-input>
                                </el-form-item>
                            </el-col>
                        </el-row>
                    </el-form>
                </div>
                <div class="public-box">
                    <el-form size="mini" label-width="90px">
                        <el-row>
                            <el-col :span="12">
                                <el-form-item label="缴费类型">
                                    <el-select v-model="dialog.carid" placeholder="请选择" style="width:100%;">
                                        <el-option
                                        v-for="item in select.carids"
                                        :key="item.value"
                                        :label="item.label"
                                        :value="item.value">
                                        </el-option>
                                    </el-select>
                                </el-form-item>
                            </el-col>
                            <el-col :span="12">
                                <el-form-item label="缴费金额">
                                    <el-input v-model="dialog.test"></el-input>
                                </el-form-item>
                            </el-col>
                        </el-row>
                        
                    </el-form>
                </div>
                <div class="public-box">
                    <el-form size="mini" label-width="90px">
                        <el-row>
                            <el-col :span="12">
                                <el-form-item label="操作人">
                                    <el-input v-model="dialog.test" disabled></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="12">
                                <el-form-item label="操作时间">
                                    <el-input v-model="dialog.test" disabled></el-input>
                                </el-form-item>
                            </el-col>
                        </el-row>
                    </el-form>
                </div>
            </div>            
        </el-scrollbar>
        <div class="textcenter" style="padding-top:10px;">
            <el-button type="primary" size="mini">确定</el-button>  
            <el-button type="info" @click="dialog.isVisible = false" size="mini">返回</el-button>
        </div>
    </el-dialog>
</div>
</template>
<script>
export default {
    data(){
        return {
            form:{
                test:''
            },
            tabledata:[],
            page:{
              now:1,
              pagesize:10,
              sizes:[2,10, 20, 50, 100],
              total:0,
              key:''
            },
            select:{
                carids:[],
                types:[]
            },
            dialog:{
                isVisible:false,
                test:'',
                data:[
                    {name:"公司标示",value:'',id:'100'},
                    {name:"监督卡座",value:'',id:'101'},
                    {name:"计价器IC卡",value:'',id:'102'},
                    {name:"座套",value:'',id:'103'},
                    {name:"公交分局防伪标识",value:'',id:'104'},
                    {name:"防劫网",value:'',id:'105'},
                    {name:"车载显示屏",value:'',id:'106'},
                    {name:"GPS编号",value:'',id:'107'},
                    {name:"GPS使用频率",value:'',id:'108'},
                    {name:"计价器编号",value:'',id:'109'},
                    {name:"计价器类型",value:'',id:'110'},
                    {name:"钢瓶编号",value:'',id:'111'},
                    {name:"钢瓶型号",value:'',id:'112'},
                    {name:"钢瓶容量",value:'',id:'113'},
                    {name:"钢瓶审验日期",value:'',id:'114'},
                    {name:"钢瓶生产厂家",value:'',id:'115'},
                    {name:"燃气系统名称",value:'',id:'116'},
                    {name:"顶灯类型",value:'',id:'117'},
                    {name:"电子标签识别号",value:'',id:'118'},
                    {name:"环保标识(绿标、黄标)",value:'',id:'119'},
                    {name:"三角警示牌",value:'',id:'120'},
                    {name:"灭火器是否车载",value:'',id:'121'},
                    {name:"灭火器有效期",value:'',id:'122'},
                    {name:"车辆年检日期",value:'',id:'123'},
                    {name:"安全气囊",value:'',id:'124'}
                ]
            }
        }
    },
    components:{
    },
    mounted(){
        
    },
    methods:{
        getValue(html){

        },
        handleChange(file, fileList){
            console.log("file",file)
        },
        search(){
            alert("search")
        },
        //分页
        handleSizeChange(pagesize){
            this.page.pagesize = pagesize;
            this.search(true,true);
        },
        handleCurrentChange(pageno){
            this.page.now = pageno;
            this.search(true,true);
        }

    }
}
</script>